package singleton;

public class Bean {
    private static Bean bean = null;

    private Bean() {
    }

    public static Bean getInstance() {
        return bean == null ? new Bean() : bean;
    }
}
